import { createApp } from 'vue'
import { createStore } from 'vuex'

const store = createStore({
  state() {
    return {
      userinfo: {},
      playerinfo: {},
    }
  },
  mutations: {
    updateUserInfo(state, userinfo) {
      state.userinfo = userinfo
    },
    updatePlayerInfo(state, playerinfo) {
      state.playerinfo = playerinfo
    },
  },
})

export default store
